package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {
	@RequestMapping("/v1/user/login")
	@ResponseBody
	public String login() {
		return "恭喜你登陆成功";
		
	}
	
	@RequestMapping("/v1/user/register")
	@ResponseBody
	public String register() {
		return "恭喜你注册成功";
	}
}
